package com.clwl.supervise.superviseapp.entity.supervise;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
    * 监管网格（仅食品经营）
    */
@Data
@TableName(value = "JG_GRID")
public class JgGrid implements Serializable {


    @TableId(value = "ID", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 网格名称
     */
    @TableField(value = "NAME")
    private String name;

    /**
     * 网格负责人1id
     */
    @TableField(value = "GRID_PERSON1_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long gridPerson1Id;

    /**
     * 网格负责人2id
     */
    @TableField(value = "GRID_PERSON2_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long gridPerson2Id;

    /**
     * 网格负责人1姓名
     */
    @TableField(value = "GRID_PERSON1_NAME")
    private String gridPerson1Name;

    /**
     * 网格负责人2姓名
     */
    @TableField(value = "GRID_PERSON2_NAME")
    private String gridPerson2Name;

    /**
     * 网格所属机构id
     */
    @TableField(value = "GRID_DEPT_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long gridDeptId;

    /**
     * 网格所属机构名称
     */
    @TableField(value = "GRID_DEPT_NAME")
    private String gridDeptName;

    /**
     * 备注
     */
    @TableField(value = "REMARK")
    private String remark;

    /**
     * 说明
     */
    @TableField(value = "ILLUSTRATE")
    private String illustrate;

    /**
     * 网格坐标
     */
    @TableField(value = "GRID_COORDINATE")
    private String gridCoordinate;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME")
    private Date createTime;

    /**
     * 创建人id
     */
    @TableField(value = "CREATOR_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long creatorId;

    /**
     * 创建人姓名
     */
    @TableField(value = "CREATOR")
    private String creator;

    /**
     * 创建人部门id
     */
    @TableField(value = "CREATE_DEPT_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long createDeptId;

    /**
     * 创建人部门名称
     */
    @TableField(value = "CREATE_DEPT_NAME")
    private String createDeptName;

    /**
     * 是否删除：0-否，1-是
     */
    @TableField(value = "DELETE_FLAG")
    private Long deleteFlag;

    private static final long serialVersionUID = 1L;
}
